//
//  AppDelegate.swift
//  艾小夕の微小博
//
//  Created by 艾小新 on 15/10/15.
//  Copyright © 2015年 艾小新. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        window?.backgroundColor = UIColor.whiteColor()
        
        setupGlobalSettings()
        
        window?.rootViewController = MainTabBarController()
        
        window?.makeKeyAndVisible()
        
        return true
    }
    
    /// 全局颜色设置
    private func setupGlobalSettings() {
        
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()

    }



}

